<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="viewport" content="width=device-width, maximum-scale=2.0, minimum-scale=0.3"/>
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/responsive.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/sky-forms.css">

    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic'
          rel='stylesheet' type='text/css'/>
    <link href='http://fonts.googleapis.com/css?family=Anton' rel='stylesheet' type='text/css'/>

    <link href='http://fonts.googleapis.com/css?family=Coda+Caption:800' rel='stylesheet' type='text/css'/>

    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/search.js"></script>

    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.selectbox-0.2.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.modal.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.form.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.validate.min.js"></script>
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#profile").selectbox();
            $("#position").selectbox();
            $("#citizenship").selectbox();
            $("#sex").selectbox();
        });
    </script>
</head>

<body <?php echo $this->bodyClass; ?>>
<div class="logo_nav_panel">
    <div class="contener">
        <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php" class="logo" title="logo">
            <div class="mainLogo"></div>
        </a>
        <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=admin/login" class="blue_button alignright">ADMIN</a>

        <?php if(Yii::app()->user->getIsGuest()): ?>
            <a style="margin-right: 5px;" href="#login-form" class="blue_button alignright modal-opener">LOGIN</a>
        <?php endif;?>
        <?php if(!Yii::app()->user->getIsGuest()): ?>
            <a style="margin-right: 5px;" href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=auth/logout" class="blue_button alignright">LOGOUT</a>
        <?php endif;?>
        <ul class="login">
            <li><a href="#sign-up-1-form" class="modal-opener" onclick="$('#sign-up-3-form').removeClass('submited');">Sign up as player</a></li>
            <li><a href="#previous-teams-form" class="modal-opener" onclick="$('#sign-up-3-form').removeClass('submited');">Sign up as coach</a></li>
            <li class="nodevider"><a href="#m-sign-up-form" onclick="$('#m-sign-up-form').removeClass('submited');" class="modal-opener">Sign up as manager </a></li>
        </ul>
        <ul class="navigation">
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php">Home</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/page&view=benefits">Your benefits</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/page&view=about">About us</a></li>
            <li><a href="#contact-form" class="modal-opener">Contact us</a></li>
        </ul>
        <ul class="country">
            <li>Supported languages</li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/language&language=ge"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/countries/german.jpg" width="29" height="23" alt="country"/></a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/language&language=fr"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/countries/france.jpg" width="29" height="23" alt="country"/></a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/language&language=sp"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/countries/spain.jpg" width="29" height="23" alt="country"/></a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/language&language=cr"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/countries/croatia.jpg" width="28" height="23" alt="country"/></a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/language&language=en"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/countries/england.jpg" width="28" height="23" alt="country"/></a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/language&language=rs"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/countries/russia.jpg" width="31" height="23" alt="country"/></a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/language&language=it"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/countries/italy.jpg" width="29" height="23" alt="country"/></a></li>
        </ul>
    </div>
</div>

<?php include '_login.php'; ?>
<?php include '_contact.php'; ?>
<?php include '_sign_up.php'; ?>

<?php include '_m_sign_up.php'; ?>

<div class="header_panel">
    <div class="contener">
        <div class="info">
            <h2>Build your team with us</h2>

            <p>This specialised site is aimed at male and female international handball players throughout the world.
                The main aim is to create a virtual showcase that gives players and trainers the possibility to promote
                their professional profile through the services that we offer completely free of charge.</p>
        </div>
        <?php if($this->bodyClass == ''): ?>
            <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/pic1.png" width="792" height="602" alt="pic" class="men"/>
        <?php endif;?>

        <div class="form_panel">
            <h2>Search your profile</h2>

            <form name="scholarship_form" id="scholarship_form" action="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/search" method="post">
                <select data-placeholder="Profile" class="alignleft blue-bg chosen-select" id="profile" name="profile"
                        onchange="onProfileChange(this)">
                    <option value="Player">Player</option>
                    <option value="Coach">Coach</option>
                </select>
                <select class="alignleft blue-bg" name="citizenship" id="citizenship">
                    <option value="" disabled selected style="display: none;">Citizenship</option>
                    <?php foreach($this->countries as $country): ?>
                        <option value="<?php echo $country->code;?>"><?php echo $country->name;?></option>
                    <?php endforeach; ?>
                </select>
                <input type="text" class="alignleft textbox short" placeholder="Age" name="age"/>

                <p class="alignleft">
                    <select data-placeholder="Sex Position" class="alignright blue-bg short" name="sex"
                            id="sex">
                        <option value="" disabled selected style="display: none;">Sex</option>
                        <option value="Male">Male</option>
                        <option value="Female">Female</option>
                    </select>
                </p>
                <span id="ctxPosition">
                    <select data-placeholder="Sex Position" class="alignright blue-bg short" name="position"
                            id="position">
                        <option value="" disabled selected style="display: none;">Position</option>
                        <option value="Goalkeeper">Goalkeeper</option>
                        <option value="Left Wing">Left Wing</option>
                        <option value="Left Back">Left Back</option>
                        <option value="Center Back">Center Back</option>
                        <option value="Right Back">Right Back</option>
                        <option value="Right Wing">Right Wing</option>
                        <option value="Pivot">Pivot</option>
                    </select>
                </span>
                <input type="image" src="<?php echo Yii::app()->request->baseUrl; ?>/images/conti-button.png"/>
            </form>
        </div>
    </div>
</div>

<?php echo $content; ?>

<div class="footer_top">
    <div class="contener">
        <div class="first">
            <h2>About Us</h2>

            <p>This specialised site is aimed at male and female international handball players throughout the world.
                The main aim is to create a virtual showcase that gives players and trainers the possibility to promote
                their professional profile through...</p>
            <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/page&view=about">&raquo; Read more</a>
        </div>
        <div class="second">
            <h2>Contact Us</h2>

            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
                industry's standard dummy <br/> Pin : 123456</p>
        </div>
        <div class="third">
            <h2>Newsletter</h2>

            <p>Subscribe newsletter</p>

            <div class="form">
                <form action="" enctype="multipart/form-data" method="post">
                    <input type="text" class="textbox alignleft"/>
                    <input type="image" class="alignright" src="<?php echo Yii::app()->request->baseUrl; ?>/images/submit-button.png"/>
                </form>
            </div>
        </div>
        <div class="fourth">
            <h2>Follow Us</h2>
            <ul class="social">
                <li><a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/social-icon1.png" width="21" height="20" alt="social icon"/></a></li>
                <li><a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/social-icon2.png" width="10" height="18" alt="social icon"/></a></li>
                <li><a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/social-icon3.png" width="22" height="21" alt="social icon"/></a></li>
                <li><a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/social-icon4.png" width="16" height="21" alt="social icon"/></a></li>
            </ul>
        </div>
    </div>
</div>
<!--FOOTER TOP END -->
<!--FOOTER LAST PANEL START -->
<div class="footer_last">
    <div class="contener">
        <ul>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php">Home</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/page&view=benefits">Your Benefits</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=site/page&view=about">About Us</a></li>
            <li class="nodevider"><a href="#contact-form" class="modal-opener">Contact Us</a></li>
        </ul>
        <p class="alignright"><span class="alignleft">&copy; Copyright 2013 handballprofile. All right reserved.</span>
            <a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/footer-dex-logo.png" width="24" height="23" alt="dex"/></a></p>
    </div>
</div>
<!--FOOTER LAST PANEL END -->
</body>
</html>